<!DOCTYPE html>
<html>
   <head>
      <meta charset="UTF-8">
      <link rel="stylesheet" type="text/css" href="css/main-style.css" />
      <script src="js/jquery-1.11.0.min.js"></script>
      <script src="js/user-validates.js"></script>
      <title>Social Media Tool - User Register</title>
   </head>
   <body>
      <form name="user-data" class="user-data" action="<?= htmlspecialchars('controller/userController.php'); ?>" method="post" autocomplete="off">
         <table>
            <tr>
               <td>
                  user
               </td>
               <td>
                  <input type="text" name="user" class="txt-user" autocomplete="off" />
                  <?php if (isset($userErr)): ?>
                     <span class="error">* <?php echo $userErr; ?></span>
                  <?php endif; ?>
               </td>
            </tr>
            <tr>
               <td>
                  pass
               </td>
               <td>
                  <input type="password" name="pass" class="txt-pass" autocomplete="off" />
                  <?php if (isset($passErr)): ?>
                     <span class="error">* <?php echo $passErr; ?></span>
                  <?php endif; ?>
               </td>
            </tr>
            <tr>
               <td>
                  email
               </td>
               <td>
                  <input type="text" name="email" class="txt-email" autocomplete="off" />
                  <?php if (isset($emailErr)): ?>
                     <span class="error">* <?php echo $emailErr; ?></span>
                  <?php endif; ?>
               </td>
            </tr>
            <tr>
               <td>
                  wallet
               </td>
               <td>
                  <input type="text" name="wallet" class="txt-wallet" autocomplete="off" />
                  <?php if (isset($walletErr)): ?>
                     <span class="error">* <?php echo $walletErr; ?></span>
                  <?php endif; ?>

               </td>
            </tr>
            <tr>
               <td>
               </td>
               <td>
               </td>
            </tr>
            <tr>
               <td>
                  <input type="reset" name="reset" value="reset" />
               </td>
               <td>
                  <input type="button" class="confirm" name="confirm" value="confirm" />
               </td>
            </tr>                                
         </table>
         <input type="hidden" name="v" value="validateForm" />
      </form>
   </body>
</html>
